import request from '@/utils/request'




export function milestoneList(data) { //里程碑表-列表
    return request({
        url: '/project-management/api/project/milepost/page',
        method: 'POST',
        data,
    })
}
export function milestoneAdd(data) { //里程碑表-设备新增
    return request({
        url: '/project-management/api/project/milepost',
        method: 'POST',
        data,
    })
}
//原 put
export function milestoneEdit(data) { //里程碑表-编辑
    return request({
        url: '/project-management/api/project/milepost/put',
        method: 'post',
        data
    })
}
//原 del
export function milestoneDelete(id) { //里程碑表-删除
    return request({
        url: '/project-management/api/project/milepost/del/' + id,
        method: 'get',
    })
}
export function milestoneDetails(id) { //里程碑表-详情
    return request({
        url: '/project-management/api/project/milepost/' + id,
        method: 'get',
    })
}
export function milestoneProjectSurvey() { //里程碑表-项目查询
    return request({
        url: '/project-management/api/projectSurvey',
        method: 'get',
    })
}
export function milestoneExport(data) { //里程碑表-设备、设施设备树导出
    return request({
        url: '/project-management/api/project/milepost/export',
        responseType: 'arraybuffer',
        method: 'POST',
        data,
    })
}

